package com.itheima.clientAndService01;

import java.io.File;
import java.io.IOException;

public class FileClass02 {
    public static void main(String[] args) throws IOException {
        //method1();
        //method2();
        method3();
    }

    private static void method3() {
        File file = new File("F:\\study\\aaa\\bbb\\ccc");
        boolean result = file.mkdirs();
        System.out.println(result);
    }

    private static void method2() {
        File file = new File("F:\\study\\aaa");
        boolean result = file.mkdir();
        System.out.println(result);
    }

    private static void method1() throws IOException {
        File file = new File("F:\\study\\a.txt");
        boolean result = file.createNewFile();
        System.out.println(result);
    }
}
